"""
@Project:p7_2109
@File:qiniu_file.py
@Author:马可
@Date:下午 02:07
"""

from qiniu import Auth, put_file, etag
AccessKey='ooukWLc_A_fDVPSEyMZUcgtdmPevQ0cKOPV6aC8e'
SecretKey='2NRj_MJxqs6Xa7wBIo3vQsWH0Wr1UDkG7l_Yc3KH'

def qiniu_token():
    # 构建鉴权对象
    q = Auth(AccessKey, SecretKey)
    bucket ='newinfo-2109'
    token = q.upload_token(bucket)
    return token